package com.itheima.reggie.service;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryService {
    //查询
    List<Category> findAll();
    //保存
    void save(Category category);
    //修改
    void update(Category category);
    //删除
    ResultInfo delete(Long id);
    //根据类型查询分类
    List<Category> findByType(Integer type);
}
